{block name=table-emails}
{if $emails}
	<table class="table table-striped">
		<thead>
			<th>目的地</th>
			<th>主题</th>
			<th>日期时间</th>
			<th>状态</th>
			<th>操作</th>
		</thead>
		<tbody>
			{foreach $emails as $email}
					<tr>
						<td>{$email.email_to}</td>
						<td>{$email.email_subject}</td>
						<td>{$email.email_created|date_format:"%Y-%m-%d %H:%M %p"}</td>
						<td>{if $email.email_sent neq 1}未{else}已{/if}发送</td>
						<td><a href="javascript:void(0)" onclick="ViewEmail({$email.email_id})">查看</a> | <a href="javascript:void(0)" onclick="ResendEmail({$email.email_id})">重新发送</a></td>
					</tr>
				{/foreach}
		</tbody>
	</table>
{else}
	<div class="member-tab-content">
		This member does not have any emails.
	</div>
{/if}
{/block} 


